import request from '@/utils/request'

// 查询月工资表列表
export function listMonthsalary(query) {
  return request({
    url: '/statistic/monthsalary/list',
    method: 'get',
    params: query
  })
}

// 查询月工资表详细
export function getMonthsalary(salaryBillId) {
  return request({
    url: '/statistic/monthsalary/' + salaryBillId,
    method: 'get'
  })
}

// 新增月工资表
export function addMonthsalary(data) {
  return request({
    url: '/statistic/monthsalary',
    method: 'post',
    data: data
  })
}

// 修改月工资表
export function updateMonthsalary(data) {
  return request({
    url: '/statistic/monthsalary',
    method: 'put',
    data: data
  })
}

// 删除月工资表
export function delMonthsalary(salaryBillId) {
  return request({
    url: '/statistic/monthsalary/' + salaryBillId,
    method: 'delete'
  })
}
